/**
 * Created by xu.qiang on 2018/01/26.
 */
let res = {
    version: "v1.0",
    cdn: "//asserts.xcarimg.com/web/bbs/dist/",
    project: "web_bbs",
    publicPath: './dist/v1.0/'
};
res['module'] = {
    'index': {
        js: './assets/js/index.js',
        css: './assets/sass/index.scss',
        tpl: './template/index.tpl.php'
    },
    'list': {
        js: './assets/js/list.js',
        css: './assets/sass/list.scss',
        tpl: './template/list.tpl.php'
    },
    'detail': {
        js: './assets/js/detail.js',
        css: './assets/sass/detail.scss',
        tpl: './template/detail.tpl.php'
    },
    'mycar_index': {
        js: './assets/js/detail.js',
        css: './assets/sass/detail.scss',
        tpl: './template/mycar_index.tpl.php'
    },
};


var entry = {};
for (var i in res.module) {
    var item = res.module[i];
    entry[i] = [];
    if (typeof item['js'] == 'string') {
        entry[i].push(item['js']);
    } else {
        entry[i] = entry[i].concat(item['js'])
    }
    if (typeof item['css'] == 'string') {
        entry[i].push(item['css']);
    } else {
        entry[i] = entry[i].concat(item['css'])
    }
}
res.entry = entry;
module.exports = res;